<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>志愿填报注册</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/hadmin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="css/hadmin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="css/hadmin/css/animate.css" rel="stylesheet">
    <link href="css/hadmin/css/style.css?v=4.1.0" rel="stylesheet">
    <script>if(window.top !== window.self){ window.top.location = window.location;}</script>
	<style type="text/css">
	body{
	background-image:url("img/zylogo.jpg");
	
	}
	
	
	</style>
</head>

<body class="gray-bg" id="body">

    <div class="middle-box text-center loginscreen   animated fadeInDown">
        <div>
            <div>

                <h1 class="logo-name">ZTE</h1>

            </div>
            <h3>高考志愿填报</h3>
            <p><font  id="er3" color="red">${msg }</font></p>
            <p>创建一个新账户</p>
            <form class="m-t" role="form" action="toRegister.action" id="form" method="post">
                <div class="form-group">
                   <input type="text" class="form-control" placeholder="请输入手机号(必填)"  id="phoneno" name="phoneno" onkeyup="value=value.replace(/[^\d]/g,'')">
                </div>
                   <div class="form-group">
                    <input type="password" class="form-control" placeholder="请输入密码(必填)"  id="password" name="password">
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="请输入姓名(必填)"  id="name" name="name">
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="请输入准考证号" onkeyup="value=value.replace(/[^\d]/g,'')" id="cardno" name="cardno">
                </div>
                 <div class="form-group">
                    <input type="text" class="form-control" placeholder="请输入身份证号"  id="ID" name="ID">
                </div>
                 <div class="form-group">
                    <input type="text" class="form-control" placeholder="请输入毕业高中"  id="school" name="school">
                </div>
                <div class="form-group text-left">
                    <div class="checkbox i-checks">
                        <label class="no-padding">
                         
                    </div>
                </div>
                <button type="submit" class="btn btn-primary block full-width m-b">注册</button>
                
                <p class="text-muted text-center"><small style="color:black;">已经有账户了？</small><a href="SchoolLogin.action">点此登录</a>
                </p>
            </form>
        </div>
    </div>

    <!-- 全局js -->
    <script src="js/hadmin/js/jquery.min.js?v=2.1.4"></script>
    <script src="js/hadmin/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- iCheck -->
    <script src="js/hadmin/js/plugins/iCheck/icheck.min.js"></script>
    <script>
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
        });
    </script>
<script type="text/javascript">
	$("#form").submit(function(){
	var name = $("#name").val();
	var phoneno = $("#phoneno").val();
	var cardno = $("#cardno").val();
	var password = $("#password").val();
	var id = $("#ID").val();
	if(phoneno===null|| phoneno===""){
		alert("请输入你的手机号");
         return false;
	
	}else{
		if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(phoneno))){ 
	  		alert("不是完整的11位手机号或者正确的手机号前七位"); 
	  		return false; 
 		} 
	} 
	if(password===null||password===""){
		alert("请输入你的密码");
         return false;
	
	} 
	if(name===null||name===""){
		alert("请输入你的姓名");
         return false;
	}
	
/* 	if(id===null||id===""){
		alert("请输入你的身份证号");
         return false;
	
	
	}else{
		if(!(/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(id))){ 
	  		alert("身份证号不合法"); 
	  		return false; 
 		} 
	}  */
	
/* 	if(cardno===null||cardno===""){
		alert("请输入你的准考证号");
         return false;
	
	} */
		return true;
	
});
		 </script>
    
    

</body>

</html>

